/*
 * Copyleft 2012 Power by Colen.
 *
 * Project: app-crm
 * Date: Mar 17, 2012
 */
package com.crm.common.service.pub;

import java.util.List;
import java.util.Map;


/**
 * Code Data Cache Service
 *
 * @author Coeln
 */
public interface CodeDataService extends CacheService
{

    /**
     * get code list by code key
     *
     * @param codeKey code key
     * @return List<Map<String,Object>>
     */
    List<Map<String, Object>> getCodeList(String codeKey);

    /**
     * get code name by value (full name)
     *
     * @param codeKey code key
     * @param value code value
     * @return String
     */
    String getNmByValue(String codeKey, String value);

    /**
     * get code name by value (ABBR name)
     *
     * @param codeKey code key
     * @param value code value
     * @return String
     */
    String getAbbrNmByValue(String codeKey, String value);

}
